package com.study.model.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;




/**
 * The persistent class for the returnmore database table.
 * 
 */
@Entity
@NamedQuery(name="Returnmore.findAll", query="SELECT r FROM Returnmore r")
public class Returnmore implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="return_id")
	private int returnId;

	@Column(name="return_cause")
	private String returnCause;

	@Column(name="return_num")
	private int returnNum;

	@Column(name="return_remark")
	private String returnRemark;
	
	@Column(name="useid")
	private int useid;
	
	@Column(name="rtimes")
	private Date rtimes;
	

	@ManyToOne
	@JoinColumn(name="goo_id")
	private Good good;

	//bi-directional many-to-one association to Orderdetail
	@ManyToOne
	@JoinColumn(name="dd_id")
	private Orderdetail orderdetail;

	//bi-directional many-to-one association to Orderform
	@ManyToOne
	@JoinColumn(name="ret_id")
	private Orderform orderform;



	public Returnmore() {
	}

	public int getReturnId() {
		return this.returnId;
	}

	public void setReturnId(int returnId) {
		this.returnId = returnId;
	}

	public String getReturnCause() {
		return this.returnCause;
	}

	public void setReturnCause(String returnCause) {
		this.returnCause = returnCause;
	}

	public int getReturnNum() {
		return this.returnNum;
	}

	public void setReturnNum(int returnNum) {
		this.returnNum = returnNum;
	}

	public String getReturnRemark() {
		return this.returnRemark;
	}

	public void setReturnRemark(String returnRemark) {
		this.returnRemark = returnRemark;
	}



	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public Orderdetail getOrderdetail() {
		return this.orderdetail;
	}

	public void setOrderdetail(Orderdetail orderdetail) {
		this.orderdetail = orderdetail;
	}

	public Orderform getOrderform() {
		return this.orderform;
	}

	public void setOrderform(Orderform orderform) {
		this.orderform = orderform;
	}

	public int getUseid() {
		return useid;
	}

	public void setUseid(int useid) {
		this.useid = useid;
	}

	public Date getRtimes() {
		return rtimes;
	}

	public void setRtimes(Date rtimes) {
		this.rtimes = rtimes;
	}


}